package com.example.databasepj.exception;


public enum ErrorCode {
        SUCCESS(0, "成功"),
        INVALID_CREDENTIALS(401, "ID或密码错误"),
        SYSTEM_ERROR(500, "服务器内部错误");

        private int code;
        private String message;

        ErrorCode(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }

